/**
 * This is the sevice class for those actions about user
 *
 */
package cn.fanyamin.business;

import java.util.List;
import java.util.Map;

import cn.fanyamin.domain.UserCategory;
import cn.fanyamin.domain.Item;



/**
 * @author walter.fan@gmail.com on 07/18/06
 * 
health
maintain
birthday
holiday
clean
happy
 *
 */
public interface ItemService extends ICRUD<Integer, Item>  {
   
    List<Item> findItems(Item item);
    
    List<Item> getCheckList(int userID);
    
    UserCategory getCategory(int categoryID);
    
    Map<Integer, UserCategory> getCategories(int categoryType,int userID);
    
    List<UserCategory> getCategories(int userID);
    
    List<UserCategory> getCategoryList(int categoryType,int userID);
    
    int createCategory(UserCategory category);
    
    int updateCategory(UserCategory category);
    
    int deleteCategory(int categoryID);
    
}
